Remove `Clone` for a struct we don't want cloned
authorAlex Crichton <alex@alexcrichton.com>
Sat, 3 Jun 2017 00:18:06 +0000 (17:18 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 5 Jun 2017 14:36:44 +0000 (07:36 -0700)
It's super expensive to clone a `Resolve` and the resolution implementation no
longer needs to do so, let's remove the impl.

src/cargo/core/resolver/mod.rs

index ecceb64565f1935a170021ccd708b176b1c7fd9f..24c9a457341d3d1350918f81cb80aadfe50324f4 100644 (file)
@@ -72,7 +72,6 @@ mod encode;
 ///
 /// Each instance of `Resolve` also understands the full set of features used
 /// for each package.
-#[derive(Clone)]
 pub struct Resolve {
     graph: Graph<PackageId>,
     replacements: HashMap<PackageId, PackageId>,